//
//  SFBaseTableView.swift
//  SwiftForwardWayXu
//
//  Created by 郑程旭 on 2022/1/7.
//

import UIKit

class SFBaseTableView: UITableView {
    
    static let cellId = "kBaseCellId"

    override init(frame: CGRect, style: UITableView.Style) {
        super.init(frame: frame, style: style)
        
        self.backgroundColor = .white
        self.estimatedSectionFooterHeight = 0.01
        self.estimatedSectionHeaderHeight = 0.01
        self.rowHeight = 44
        self.keyboardDismissMode = UIScrollView.KeyboardDismissMode.onDrag
        self.separatorColor = kHexColor(hex: 0xE6E6E6, alpha: 1)
        self.register(object_getClass(SFBaseTableViewCell()), forCellReuseIdentifier: SFBaseTableView.cellId)
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
